package com.dai.zhenfujin.issue.activity.room;

import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.TextView;

import com.dai.zhenfujin.R;
import com.dai.zhenfujin.base.BaseActivity;

/**
 * 二手房发布产品
 */
public class ResoldApartmentActivity extends BaseActivity implements View.OnClickListener{

    private EditText etName,etSellingPrice,etAcreage,etHouseType,etFloor,etFitment,etSite;

    private TextView tvMetro,tvDistrict,tvQuality,tvRipe;
    private TextView tvEnvironment,tvTransparent,tvDaylighting,tvBig;
    private TextView tvSouth,tvScenery,tvGarden;

    private ImageView ivProductPicture;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_resold_apartment);
        initView();
        initListener();
    }


    private void initListener() {

        tvMetro.setOnClickListener(this);
        tvDistrict.setOnClickListener(this);
        tvQuality.setOnClickListener(this);
        tvRipe.setOnClickListener(this);
        tvEnvironment.setOnClickListener(this);
        tvTransparent.setOnClickListener(this);
        tvDaylighting.setOnClickListener(this);
        tvBig.setOnClickListener(this);
        tvSouth.setOnClickListener(this);
        tvScenery.setOnClickListener(this);
        tvGarden.setOnClickListener(this);
    }

    private void initView() {
        etName = findViewById(R.id.issue_ra_et_name);//产品名称
        etSellingPrice = findViewById(R.id.issue_ra_et_selling_price);//参考均价
        etAcreage = findViewById(R.id.issue_ra_et_acreage);//面积
        etHouseType = findViewById(R.id.issue_ra_et_house_type);//户型
        etFloor = findViewById(R.id.issue_ra_et_floorr);//楼层
        etFitment = findViewById(R.id.issue_ra_et_fitment);//装修
        etSite= findViewById(R.id.issue_ra_et_site);//地址
        ivProductPicture= findViewById(R.id.issue_ra_iv_product_picture);//产品图

        tvMetro = findViewById(R.id.product_launch_pl_tv1);
        tvDistrict= findViewById(R.id.product_launch_pl_tv2);
        tvQuality= findViewById(R.id.product_launch_pl_tv3);
        tvRipe= findViewById(R.id.product_launch_pl_tv4);
        tvEnvironment= findViewById(R.id.product_launch_pl_tv5);
        tvTransparent= findViewById(R.id.product_launch_pl_tv6);
        tvDaylighting= findViewById(R.id.product_launch_pl_tv7);
        tvBig= findViewById(R.id.product_launch_pl_tv8);
        tvSouth= findViewById(R.id.product_launch_pl_tv9);
        tvScenery= findViewById(R.id.product_launch_pl_tv10);
        tvGarden= findViewById(R.id.product_launch_pl_tv11);



        tvMetro.setText("近地铁");
        tvDistrict.setText("繁华地段");
        tvQuality.setText("品质小区");
        tvRipe.setText("配套成熟");
        tvEnvironment.setText("环境优美");
        tvTransparent.setText("南北通透");
        tvDaylighting.setText("采光好");
        tvBig.setText("大开间");
        tvSouth.setText("两方朝南");
        tvScenery.setText("景观房");
        tvGarden.setText("带花园");

    }
    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.product_launch_pl_tv1://近地铁
                break;
            case R.id.product_launch_pl_tv2://繁华地段
                break;
            case R.id.product_launch_pl_tv3://品质小区
                break;
            case R.id.product_launch_pl_tv4://  配套成熟
                break;
            case R.id.product_launch_pl_tv5://环境优美
                break;
            case R.id.product_launch_pl_tv6://南北通透
                break;
            case R.id.product_launch_pl_tv7:// 采光好
                break;
            case R.id.product_launch_pl_tv8://大开间
                break;
            case R.id.product_launch_pl_tv9:// 两方朝南
                break;
            case R.id.product_launch_pl_tv10://景观房
                break;
            case R.id.product_launch_pl_tv11://带花园
                break;
        }
    }
}
